var pu = function(a) {
    return function() {
        return a
    }
}

b = pu("T")();
c = pu("K")();
console.log(b);
console.log(c);